﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class StageContent : MonoBehaviour
{
    public GameObject stagePrefab;
    private int stageCount;
    public List<string> allKeys = new List<string>();
    

    // Start is called before the first frame update
    void Start()
    {
        stageCount = GameInit.instance.numberSlotsDict.Keys.Count;

        foreach (string key in GameInit.instance.numberSlotsDict.Keys)
        {
            allKeys.Add(key);
        }
        for (int i = 0; i < stageCount; i++)
        {
            GameObject.Instantiate(stagePrefab, transform).AddComponent<Stage>().SetInfo(allKeys[i]);
        }

    }

    // Update is called once per frame
    void Update()
    {
        
    }

}
